package com.osmino.contacts.search;

import java.util.List;
import com.osmino.contacts.entity.Contact;
import com.osmino.contacts.entity.Phone;

final class AsyncDublicatesPhonesSearcher extends AsyncDublicatesSearcher {

	public AsyncDublicatesPhonesSearcher(ISearchDublicateController controller, List<Contact> contacts) {
		super(controller, contacts);
	}

	@Override
	protected void fillConstraintList(Contact contact, List<String> constraintList) {
		for (Phone phone : contact.getPhones()) {
			constraintList.add(phone.number);
		}
	}

}
